package com.geekai.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geekai.chat.dto.ConversationDto;
import com.geekai.chat.entity.Conversation;

import java.util.List;

public interface ConversationService extends IService<Conversation> {

    Conversation createConversation(String username, String title);

    List<ConversationDto> getUserConversations(String username);

    ConversationDto getConversationWithMessages(Long conversationId, String username);

    void deleteConversation(Long conversationId, String username);

    void updateConversationTitle(Long conversationId, String title, String username);
}